<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

    function filturArr ( arr) {
        var tem = []
        for( var i = 0; i< arr.length; i++){
            if( arr[i] > 10 ){
                tem.push(arr[i])
            }
        }
        return tem
    }

    var res = filturArr ([12,5,,744,,5,3,2,8,5,45])
    console.log(res);
    
    </script>
</body>
</html>